﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Messages
/// </summary>
public class Messages
{
    private Users fromUser;
    private Users toUser;
    private string subject;
    private string contents;
    private DateTime createTime;

	public Messages()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public Messages(Users fromUser, Users toUser, string subject, string contents, DateTime createTime)
    {
        this.fromUser = fromUser;
        this.toUser = toUser;
        this.subject = subject;
        this.contents = contents;
        this.createTime = createTime;
    
    }

    public Users FromUser
    {
        get { return fromUser; }
        set { fromUser = value; }
    }

    public Users ToUser
    {
        get { return toUser; }
        set { toUser = value; }
    }

    public string Subject
    {
        get { return subject; }
        set { subject = value; }
    }

    public string Contents
    {
        get { return contents; }
        set { contents = value; }
    }

    public DateTime CreateTime
    {
        get { return createTime; }
        set { createTime = value; }
    }
}